package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsPmTen;
import io.sage.modules.statistics.entity.BStatisticsPmTenExample;

public interface BStatisticsPmTenMapper {
    int countByExample(BStatisticsPmTenExample example);

    int deleteByExample(BStatisticsPmTenExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsPmTen record);

    int insertSelective(BStatisticsPmTen record);

    List<BStatisticsPmTen> selectByExample(BStatisticsPmTenExample example);

    BStatisticsPmTen selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsPmTen record, @Param("example") BStatisticsPmTenExample example);

    int updateByExample(@Param("record") BStatisticsPmTen record, @Param("example") BStatisticsPmTenExample example);

    int updateByPrimaryKeySelective(BStatisticsPmTen record);

    int updateByPrimaryKey(BStatisticsPmTen record);

    /**
	 * PM10列表
	 * @param example
	 * @return
	 */
	List<BStatisticsPmTen> selectStatisticsPmTenList(Map<String, Object> params);

	/**
	 * 批量添加传感器的PM10
	 * @param list
	 * @return
	 */
	int savePmTenList(@Param("list")List<BStatisticsPmTen> list);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
